﻿@{
    Layout = "~/Views/Shared/_LayoutPopup.cshtml";
}

@foreach (var r in ViewBag.operating)
{
    <div class="service_search_header p-Relative historyframe">
        <div class="service_title">การปฏิบัติงาน</div>
    </div>

    <div class="service_box_table">
        <div class="showTextFormBox">
            <div class="floatL">@Multi.operationCode</div>
            <div class="floatL">:</div>
            <div class="showTextForm">@r.operating_code</div>
            <div class="clear"></div>
        </div>
        <div class="showTextFormBox">
            <div class="floatL">@Multi.operationType</div>
            <div class="floatL">:</div>
            <div class="showTextForm">@r.operating_type_text</div>
            <div class="clear"></div>
        </div>
        <div class="showTextFormBox">
            <div class="floatL">@Multi.operatingStatus</div>
            <div class="floatL">:</div>
            <div class="showTextForm">@r.status_text</div>
            <div class="clear"></div>
        </div>
        <div class="showTextFormBox">
            <div class="floatL">วัตถุประสงค์การปฏิบัติงาน</div>
            <div class="floatL">:</div>
            <div class="showTextForm">@r.org_text</div>
            <div class="clear"></div>
        </div>
        <div class="showTextFormBox">
            <div class="floatL">@Multi.detail</div>
            <div class="floatL">:</div>
            <div class="showTextForm">@r.summary</div>
            <div class="clear"></div>
        </div>
        <div class="showTextFormBox">
            <div class="floatL">@Multi.file_input</div>
            <div class="floatL">:</div>
            <div class="showTextForm">@r.attachments</div>
            <div class="clear"></div>
        </div>
        <div class="showTextFormBox">
            <div class="floatL">@Multi.severity</div>
            <div class="floatL">:</div>
            <div class="showTextForm">@r.severity_text</div>
            <div class="clear"></div>
        </div>
        <div class="showTextFormBox">
            <div class="floatL">@Multi.confident</div>
            <div class="floatL">:</div>
            <div class="showTextForm">@r.secret_text</div>
            <div class="clear"></div>
        </div>
        <div class="showTextFormBox">
            <div class="floatL">@Multi.essence</div>
            <div class="floatL">:</div>
            <div class="showTextForm">@r.priority_text</div>
            <div class="clear"></div>
        </div>
        <div class="showTextFormBox">
            <div class="floatL">@Multi.save</div>
            <div class="floatL">:</div>
            <div class="showTextForm">@r.created_by_text</div>
            <div class="clear"></div>
        </div>
        <div class="showTextFormBox">
            <div class="floatL">@Multi.operationDate</div>
            <div class="floatL">:</div>
            <div class="showTextForm">@r.date_opened</div>
            <div class="clear"></div>
        </div>
    </div>
}
<div class="service_search_header p-Relative historyframe">
    <div class="service_title">@Multi.TheContact</div>
</div>
@foreach (var list in ViewBag.contactModel)
{
    
    <div class="service_box_table">
        <div class="showTextFormBox">
            <div class="floatL">@Multi.date_opened</div>
            <div class="floatL">:</div>
            <div class="showTextForm">@list.contact_date</div>
            <div class="clear"></div>
        </div>
        <div class="showTextFormBox">
            <div class="floatL">@Multi.ChanelIn</div>
            <div class="floatL">:</div>
            <div class="showTextForm">@list.channel_text</div>
            <div class="clear"></div>
        </div>
        <div class="showTextFormBox">
            <div class="floatL">@Multi.objectivity</div>
            <div class="floatL">:</div>
            <div class="showTextForm">@list.objective_text</div>
            <div class="clear"></div>
        </div>
        @if (list.account_name != null)
        {
            <a href="@Url.Action("ContactDetail", "GroupList", new { account_id = list.account_id })" data-block="contactDetail" onclick="callboxGetOperating($(this).attr('href')); return false;">
                <input type="hidden" id="@list.account_id" name="account_id"/>
                <div class="showTextFormBox">
                    <div class="floatL">@Multi.ContactInformation</div>
                    <div class="floatL">:</div>
                    <div class="showTextForm">@list.account_name</div>
                    <div class="clear"></div>
                </div>
            </a>
        }
        else
        {
            <div class="showTextFormBox">
                <div class="floatL">@Multi.ContactInformation</div>
                <div class="floatL">:</div>
                <div class="showTextForm"></div>
                <div class="clear"></div>
            </div>
        }
        <div class="showTextFormBox">
            <div class="floatL">@Multi.is_secret</div>
            <div class="floatL">:</div>
            <div class="showTextForm">@list.is_public </div>
            <div class="clear"></div>
        </div>
    </div>
}

<div class="BoxServiceBottom">
    <div class="BoxServiceActionPrev floatL" onclick="parent.$.fn.colorbox.close();">@Multi.close</div>
    <div class="clear"></div>
</div>



